/*	general styles	*/
body {
	text-align: center;
	background: #a0c0ff;
}
.page {
	display: none;	/* inline-block */
	position: relative;
	border: 1px solid white;
	background: white;
	padding: 15px;
	top: 50%;
	min-width: 200px;
	
	font-family: Arial;
	border-radius: 8px;
}
.button {
	display: inline-block;
	position: relative;
	padding: 4px 12px;
	margin: 0;
	border: 3px solid #ccc;
	border-radius: 4px;
	background: #0162ff;
	color: white;
	cursor: pointer;
}
	.button:active {
		background: #a0c0ff;
	}
	.button.back {
		position: absolute;
		top: -40px;
		left: 10px;
		border-color: white;
	}
	.button.disabled {
		opacity: .5;
		cursor: default;
	}
		.button.disabled:active {
			background: #0162ff;
		}



/*	login page	*/
#LoginPage {
	height: 160px;
	margin-top: -130px;
}
#LoginPage input,
	#LoginPage select {
		display: block;
		width: 100%;
		margin-bottom: 10px;
		font-family: Arial;
		font-size: 14px;
	}
#LoginPage select {
	margin-bottom: 20px;
}
#LoginPage .button {
	width: 50%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 8px;
}



/*	matchmaker type selection	*/
#MatchPage {
	height: 170px;
	margin-top: -130px;
	max-width: 200px;
}
#MatchPage .button.normal {
	display: block;
	width: 70%;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 15px;
}



/*	search for existing games	*/
#FindMatchPage {
	height: 400px;
	margin-top: -210px;
	width: 350px;
}
#FMPlist {
	display: block;
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	padding-right: 10px;
	max-height: 350px;
	overflow-y: scroll;
}
	#FMPlist li {
		display: block;
		position: relative;
		color: gray;
		text-align: left;
		margin: 0;
		margin-bottom: 10px;
		padding: 12px;
		border: 1px solid gray;
		border-radius: 6px;
	}
	#FMPlist .info {
		font-weight: bold;
		color: black;
	}
	#FMPlist .button {
		position: absolute;
		right: 10px;
		top: 50%;
		margin-top: -15px;
	}



/*	hosting game details & indicator	*/
#HostMatchPage {
	margin-top: -80px;
	text-align: right;
}
#HostMatchPage p {
	text-align: center;
}
.HMPdetails {
	display: block;
	border: 1px solid black;
	padding: 10px;
	margin: 0;
	margin-bottom: 14px;
}
	.HMPdetails span {
		color: red;
	}



/*	main page on which a game is played	*/
#GamePage {
	width: 600px;
	height: 500px;
	margin-top: -280px;
}
#GameBoard {
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	border: 1px solid black;
	width: 450px;
	height: 340px;
}
#ScoreBoard {
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	vertical-align: top;
/* 	border: 1px solid black; */
	width: 140px;
	margin-left: 6px;
	background: #0162ff;
	border-radius: 4px;
}
	#ScoreBoard .player {
		display: block;
		position: relative;
		border: 1px solid white;
		color: white;
		margin: 8px;
		padding: 3px;
		border-radius: 4px;
	}
		#ScoreBoard .player.selected {
			background: white;
			color: #0162ff;
		}
#Console {
	display: block;
	position: relative;
	box-sizing: border-box;
	border: 1px solid black;
	height: 150px;
	margin-top: 10px;
	padding: 10px;
	overflow-y: scroll;
	text-align: left;
}
	#Console p {
		margin: 0;
		margin-bottom: 3px;
		border-left: 2px solid gray;
		padding-left: 4px;
	}

